
GridDlg.controllerName = "/attendance/holiday";
GridDlg.PrimaryKey = "holiId";
GridDlg.formId = "holiday";
/**
 * 用户详情对话框（可用于添加和修改对话框）
 */
GridDlg.validateFields =  {
    holiName: {
        validators: {
            notEmpty: {
                message: '名称不能为空'
            }

        }
    },
    holiDate: {
        validators: {
            notEmpty: {
                message: '节假日不能为空'
            },
            date: {
                format: 'YYYY-MM-DD',
                    message: '节假日格式错误'
            }
        }
    }
};

/**
 * 收集数据
 */
GridDlg.collectData = function () {
    this.set('holiId').set('holiName').set('holiDate').set('holiMemo');
};

$(function () {
    Common.initValidator(GridDlg.formId, GridDlg.validateFields);
});
